package com.hnqcgczy.dao;
import com.hnqcgczy.vo.TUser;

import java.sql.SQLException;
import java.util.List;

public interface IUserDao {
    boolean login(String tu_id,String tu_password)throws SQLException;
    //新增方法
    boolean reg(String tu_id,String tu_password)throws SQLException;
    //获得所有用户方法
    List<TUser> getAll()throws SQLException;
    //根据ID获取该用户信息方法
    TUser getUserByID(String tu_id)throws SQLException;
    //根据真实姓名查询用户信息方法
    List<TUser> getUsersByName(String tu_name)throws SQLException;
    //模糊查询
    List<TUser> getUserByAny(Object...obj)throws SQLException;
    //更新数据
    boolean update(TUser tUser)throws SQLException;
    //根据ID删除数据
    boolean deleteById(String tu_id)throws SQLException;

    //查询昵称可不可用
    boolean querByID(String tu_id)throws SQLException;

    boolean inssert(String tu_id, String tu_password);

    }



